import time
import datetime


class TimeOperatios:

    @classmethod
    def get_time_stamp(cls):
        """时间戳"""
        return time.time()

    @classmethod
    def get_format_time(cls, fmt="%Y-%m-%d %H:%M:%S"):
        """datetime格式化时间"""
        return datetime.datetime.now().strftime(fmt)

    @classmethod
    def sleep(cls, seconds=1.0):
        """
        睡眠时间
        """
        time.sleep(seconds)
